<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmEditFeedBack">
        <f:view>
            <p:dialog id="dlgEditFeedBack"
                      widgetVar="wgEditFeedBack"
                      header="View Details"
                      draggable="true"
                      showEffect="fade"
                      hideEffect="clip"
                      >

                <p:panelGrid columns="2">
                    <p:outputLabel value="FeedBack Title:" for="feedBackTitle" />
                    <p:inputText readonly="true" id="feedBackTitle" value="#{feedBackManagement.selectFeedback.feedBackTitle}" title="FeedBackTitle" />
                    <p:outputLabel value="FeedBack Content:" for="feedBackContent" />
                    <p:inputTextarea readonly="true" id="feedBackContent" value="#{feedBackManagement.selectFeedback.feedBackContent}" title="FeedBack Content" />
                    <p:outputLabel value="Reply Content:" for="feedBackReply" />
                    <p:inputTextarea readonly="#{system.employee}" id="feedBackReply" value="#{feedBackManagement.selectFeedback.replyContent}" title="ReplyContent" maxlength="300" />

                </p:panelGrid>

                <f:facet name="footer">
                    <p:commandButton  id="btnEditFeedBack"
                                      rendered="#{system.manager}"
                                      value="Send"
                                      icon="ui-icon-check"
                                      style="margin:0"
                                      actionListener="#{feedBackManagement.edit}"
                                      update=":frmViewFeedBack:dtViewFeedBack,:growl"
                                      oncomplete="FeedBackManagementRequest(xhr, status, args)"
                                      />
                    <p:commandButton id="btnCancelEditHostpital"
                                     value="Cancel"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     onclick="wgEditFeedBack.hide();"
                                     />
                </f:facet>
            </p:dialog>
        </f:view>
    </h:form>
</html>
